These functions specify the source for input images. You must specify a source before you can call GraphicsExportDoExport .
The source can be a QuickTime graphics importer component instance, a QuickDraw Picture, a GWorld or a PixMap . Or it can be a piece of compressed data described by an image description. Compressed data can be in a file, handle, pointer, or other data reference.
The application must make sure that the source is not disposed of before the graphics exporter instance is closed or given a new source.
All of these functions are implemented by the base graphics exporter. Format-specific importers should delegate all of them.
Specifies that the source image is a compressed image stored in a data reference.
pascal ComponentResult GraphicsExportSetInputDataReference ( GraphicsExportComponent ci,
Handle dataRef,
OSType dataRefType,
ImageDescriptionHandle desc);
Returns the current input data reference.
pascal ComponentResult GraphicsExportGetInputDataReference ( GraphicsExportComponent ci,
Handle *dataRef,
OSType *dataRefType);
The caller is responsible for disposing of the returned data reference handle.
Specifies that the source image is a compressed image stored in a file.
pascal ComponentResult GraphicsExportSetInputFile (
GraphicsExportComponent ci,
const FSSpec *theFile,
ImageDescriptionHandle desc);
Returns the current input file.
pascal ComponentResult GraphicsExportGetInputFile (
GraphicsExportComponent ci,
FSSpec *theFile);
Specifies that the source image is a compressed image stored in a handle.
pascal ComponentResult GraphicsExportSetInputHandle (GraphicsExportComponent ci,
Handle h,
ImageDescriptionHandle desc);
Returns the current input handle.
pascal ComponentResult GraphicsExportGetInputHandle (GraphicsExportComponent ci,
Handle *h);
Specifies that the source image is a compressed image stored at a fixed address in memory.
pascal ComponentResult GraphicsExportSetInputPtr (
GraphicsExportComponent ci,
Ptr p,
unsigned long size,
ImageDescriptionHandle desc);
Returns the current input pointer.
pascal ComponentResult GraphicsExportGetInputPtr (
GraphicsExportComponent ci,
Ptr *p,
unsigned long *size);
Specifies that the source image is to be drawn by a graphics importer instance.
pascal ComponentResult GraphicsExportSetInputGraphicsImporter ( GraphicsExportComponent ci,
GraphicsImportComponent grip);
It is the caller's responsibility to dispose of the graphics importer.
Returns the current input graphics importer instance.
pascal ComponentResult GraphicsExportGetInputGraphicsImporter ( GraphicsExportComponent ci,
GraphicsImportComponent *grip);
Specifies that the source image is a picture.
pascal ComponentResult GraphicsExportSetInputPicture (GraphicsExportComponent ci,
PicHandle picture);
Returns the current input picture.
pascal ComponentResult GraphicsExportGetInputPicture (GraphicsExportComponent ci,
PicHandle *picture);
Specifies that the source image is a GWorld .
pascal ComponentResult GraphicsExportSetInputGWorld (GraphicsExportComponent ci,
GWorldPtr gworld);
Returns the current input GWorld .
pascal ComponentResult GraphicsExportGetInputGWorld (GraphicsExportComponent ci,
GWorldPtr *gworld);
Specifies that the source image is a pixmap.
pascal ComponentResult GraphicsExportSetInputPixmap (GraphicsExportComponent ci,
PixMapHandle pixmap);
Returns the current input pixmap.
pascal ComponentResult GraphicsExportGetInputPixmap (GraphicsExportComponent ci,
PixMapHandle *pixmap);
| Previous | Chapter Contents | Chapter Top | Next |